﻿<%@ Page Language="C#" MasterPageFile="~/page.master" AutoEventWireup="true" CodeFile="archive.aspx.cs" Inherits="archive" Title="Archives..." %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <a href="default.aspx" title="首页">latest photo</a> // 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="mainentrybox">
    <asp:Label ID="lblCatTitle" runat="server" Text="" Visible="false"></asp:Label>

    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
    <ItemTemplate>
        <div class="pbarchive">
        <div class="pbarchivetitle">
            <asp:Label ID="lblDate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.post_date","{0:MMMM d, yyyy}") %>'></asp:Label> <span class="titlemainbar">|</span> 
            <asp:HyperLink ID="lnkPost" runat="server" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.id", "default.aspx?id={0}") %>'>
                <asp:Label ID="lblTitle" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.post_title") %>'></asp:Label></asp:HyperLink>
	        — 
            <asp:HyperLink ID="lnkComment" runat="server" CssClass="thickbox" ToolTip="留言 / 图像信息" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.id","comments.aspx?id={0}&keepThis=true&TB_iframe=true&height=400&width=500") %>'>
                <asp:Label ID="lblCommentNumber" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.comment_number","{0:G} comments") %>'></asp:Label></asp:HyperLink></div>

        <asp:HyperLink ID="lnkPic" runat="server" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.id","default.aspx?id={0}") %>'><asp:Image ID="Image1" runat="server" CssClass="archivepic" BorderWidth="1px" ImageUrl='<%# DataBinder.Eval(Container, "DataItem.filename", "photos/{0}_s.jpg") %>' /></asp:HyperLink>
        <div class="imagedescription">
        <div style="text-align:left"><asp:Label ID="lblPostContent" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.post_content") %>'></asp:Label></div>
        <table cellspacing="0" cellpadding="0" border="0">
          <tbody>
          <tr><td align="right" width="150">拍摄时间</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifDate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_date") %>'></asp:Label>
    	    </td></tr>
          <tr><td align="right" width="150">相机型号</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifCamera" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_camera") %>'></asp:Label><!-- camera -->
            </td></tr>
          <tr><td align="right" width="150">镜头型号</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifLens" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.lens") %>'></asp:Label><!-- lens -->
            </td></tr>
          <tr><td align="right" width="150">焦距</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifFocal" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_focallength","{0}mm") %>'></asp:Label><!-- focal length -->
            </td></tr>
          <tr><td align="right" width="150">光圈</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifAperture" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_aperture") %>'></asp:Label><!-- aperture -->
            </td></tr>
          <tr><td align="right" width="150">曝光时间</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifShutter" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_shutterspeed") %>'></asp:Label><!-- shutter_speed -->
            </td></tr>
          <tr><td align="right" width="150">曝光模式</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifShooting" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_shootingmode") %>'></asp:Label><!-- shooting_mode -->
            </td></tr>
          <tr><td align="right" width="150">测光模式</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifMetering" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_meteringmode") %>'></asp:Label><!-- metering_mode -->
            </td></tr>
          <tr><td align="right" width="150">ISO</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifIso" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_iso") %>'></asp:Label><!-- ISO -->
            </td></tr>
          <tr><td align="right" width="150">闪光灯</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifFlash" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_is_flash") %>'></asp:Label><!-- flash -->
            </td></tr>
          <tr><td align="right" width="150">软件</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifSoftware" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_software") %>'></asp:Label><!-- raw_converter -->
            </td></tr>
          <tr><td align="right" width="150">画幅</td>
            <td width="15"></td>
            <td align="left" width="250">
    	        <asp:Label ID="lblExifCrop" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.exif_corp") %>'></asp:Label><!-- crop? -->
            </td></tr>
            </tbody></table></div>
            
        <div class="externalcommentposted" style="text-align:left">
            标签: <asp:Label ID="lblTags" runat="server" Text='<%# "<a href=\"?cid="+DataBinder.Eval(Container, "DataItem.cat1id")+"\">"+DataBinder.Eval(Container, "DataItem.cat1") +"</a>/<a href=\"?cid="+DataBinder.Eval(Container, "DataItem.cat2id")+"\">"+ DataBinder.Eval(Container, "DataItem.cat2")+"</a>" %>'></asp:Label>
        <br/><br/>
        </div>
        </div>
    </ItemTemplate>
    </asp:Repeater>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetArchivePageData"
        TypeName="dst_pbTableAdapters.pb_post2TableAdapter">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="999999" Name="id" QueryStringField="pid"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <br />

<br />
<div class="pbarchivetitle">
    <asp:HyperLink ID="lnkPrev" runat="server" ToolTip="上一页" Visible="false">&laquo; previous</asp:HyperLink><asp:Label ID="lblNav" runat="server" Text=" / " Visible="false"></asp:Label><asp:HyperLink
        ID="lnkNext" runat="server" ToolTip="下一页" Visible="false">next &raquo;</asp:HyperLink></div>

</div>
</asp:Content>

